<?php
/**
 * Created by PhpStorm.
 * User: zouyanan
 * Date: 2019/5/12
 * Time: 下午8:28
 */

namespace app\api\controller;


use app\common\controller\Api;

class Icon extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = '*';

    /**
     * 一级图标
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function lists(){
        $icons = \app\admin\model\Icon::order('sort','desc')->select();
        $this->success('success',['data'=>$icons]);
    }
}